docker build -t bengfu/jdk8_image .

docker build -t bengfu/tomcat_image .

docker network create bengfu-network 

docker run -d \
  -v /usr/local/docker/dev/admin/conf:/usr/local/apache-tomcat-8.5.40/conf:ro  \
  -v /usr/local/docker/dev/admin/mywebapps:/usr/local/apache-tomcat-8.5.40/mywebapps:ro   \
  -v /usr/local/docker/dev/admin/logs:/usr/local/apache-tomcat-8.5.40/logs   \
  -p 7701:8080  \
  --name bengfu_admin_container  \
  --network=bengfu-network  --network-alias admin \
  bengfu/tomcat_image
  
docker run -d \
  -v /usr/local/docker/dev/app/conf:/usr/local/apache-tomcat-8.5.40/conf:ro  \
  -v /usr/local/docker/dev/app/mywebapps:/usr/local/apache-tomcat-8.5.40/mywebapps:ro   \
  -v /usr/local/docker/dev/app/logs:/usr/local/apache-tomcat-8.5.40/logs   \
  -p 7702:8080  \
  --name bengfu_app_container  \
  --network=bengfu-network  --network-alias app \
  bengfu/tomcat_image
  
  
  
docker run -d \
  -v /usr/local/docker/dev/task/conf:/usr/local/apache-tomcat-8.5.40/conf:ro  \
  -v /usr/local/docker/dev/task/mywebapps:/usr/local/apache-tomcat-8.5.40/mywebapps:ro   \
  -v /usr/local/docker/dev/task/logs:/usr/local/apache-tomcat-8.5.40/logs   \
  -p 7706:8080  \
  --name bengfu_task_container  \
  --network=bengfu-network  --network-alias task \
  bengfu/tomcat_image
  
  
docker run -d \
  -v /usr/local/docker/dev/user/conf:/usr/local/apache-tomcat-8.5.40/conf:ro  \
  -v /usr/local/docker/dev/user/mywebapps:/usr/local/apache-tomcat-8.5.40/mywebapps:ro   \
  -v /usr/local/docker/dev/user/logs:/usr/local/apache-tomcat-8.5.40/logs   \
  -p 7705:8080  \
  --name bengfu_user_container  \
  --network=bengfu-network  --network-alias user \
  bengfu/tomcat_image
  
  
docker run -d \
  -v /usr/local/docker/dev/trans/conf:/usr/local/apache-tomcat-8.5.40/conf:ro  \
  -v /usr/local/docker/dev/trans/mywebapps:/usr/local/apache-tomcat-8.5.40/mywebapps:ro   \
  -v /usr/local/docker/dev/trans/logs:/usr/local/apache-tomcat-8.5.40/logs   \
  -p 7704:8080  \
  --name bengfu_trans_container  \
  --network=bengfu-network  --network-alias trans \
  bengfu/tomcat_image
  
  
docker run -d \
  -v /usr/local/docker/dev/openapi/conf:/usr/local/apache-tomcat-8.5.40/conf:ro  \
  -v /usr/local/docker/dev/openapi/mywebapps:/usr/local/apache-tomcat-8.5.40/mywebapps:ro   \
  -v /usr/local/docker/dev/openapi/logs:/usr/local/apache-tomcat-8.5.40/logs   \
  -p 7703:8080  \
  --name bengfu_openapi_container  \
  --network=bengfu-network  --network-alias openapi \
  bengfu/tomcat_image
  
  
  
  
  
  
  unzip -oq /usr/local/tomcat-app/mywebapps/app.war -d /usr/local/tomcat-app/mywebapps/app
  
  